﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FactoryMessage
{
    public struct STGMSG
    {
        public string App_Name;
        public string Invoke;
        public string P_security;
        public bool Statut;
        public string Info;
        public object[] Data;
        public string token;
    }
    public static class MSG_FACTORY
    {
        static private FactoryMessage.STGMSG oMsg;

        static public FactoryMessage.STGMSG msg_factory(
        string App_name,
        object[] Data,
        string info,
        string Invoke,
        string P_security,
        bool statut,
        string token)
        {
            oMsg = new FactoryMessage.STGMSG();

            oMsg.App_Name = App_name;
            oMsg.Data = Data;
            oMsg.Info = info;
            oMsg.Invoke = Invoke;
            oMsg.P_security = P_security;
            oMsg.Statut = statut;
            oMsg.token = token;

            return oMsg;
        }
    }

}